# 定义goods类
class Food:
    def __init__(self):
        self.name = '食物'
    def fn(self):
        return self.name

# 定义phone类
class Phone:
    def __init__(self):
        self.name = '苹果手机'
    def fn(self):
        return self.name

p1 = Phone()
print(p1.fn())

